import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: resolve => require(['@/pages/login'], resolve)
    },
    {
      path: '/',
      name: "Main",
      component:resolve => require(['@/pages/main'],resolve),
      meta: { notCache: true },
      children:[
        {
          path: '/unorder',
          name: "Unorder",
          component:resolve => require(['@/pages/unorder'],resolve)
        },
        {
          path: '/chpwd',
          name: "ChangePwd",
          component:resolve => require(['@/pages/change_password'],resolve)
        },
        {
          path: '/management',
          name: "Management",
          component:resolve => require(['@/pages/management'],resolve)
        },
        {
          path: '/noSendList',
          name: "NoSendList",
          component:resolve => require(['@/pages/noSendList'],resolve)
        },
        {
          path: '/noSendDetail/:id',
          name: "NoSendDetail",
          params: "",
          component:resolve => require(['@/pages/noSendDetail'],resolve)
        },
        {
          path: '/processList',
          name: "ProcessList",
          component:resolve => require(['@/pages/processList'],resolve)
        },
        {
          path: '/processDetail/:id',
          name: "ProcessDetail",
          component:resolve => require(['@/pages/processDetail'],resolve)
        },
        {
          path: '/aceptList',
          name: "AceptList",
          component:resolve => require(['@/pages/aceptList'],resolve)
        },
        {
          path: '/aceptDetail/:id',
          name: "AceptDetail",
          component:resolve => require(['@/pages/aceptDetail'],resolve)
        },
        {
          path: '/denyList',
          name: "DenyList",
          component:resolve => require(['@/pages/denyList'],resolve)
        },
        {
          path: '/denyDetail/:id',
          name: "DenyDetail",
          component:resolve => require(['@/pages/denyDetail'],resolve)
        },
        {
          path: '/finishList',
          name: "FinishList",
          component:resolve => require(['@/pages/finishList'],resolve)
        },
        {
          path: '/finishDetail/:id',
          name: "FinishDetail",
          component:resolve => require(['@/pages/finishDetail'],resolve)
        },
        {
          path: '/historyList',
          name: "HistoryList",
          component:resolve => require(['@/pages/historyList'],resolve)
        },
        {
          path: '/historyDetail/:id',
          name: "HistoryDetail",
          component:resolve => require(['@/pages/historyDetail'],resolve)
        }
      ]
    },

  ],
  mode: "history"
})
